package com.ruoyi.framework.encrypt;

import com.ruoyi.framework.encrypt.utils.RSAUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;

@Service
@Slf4j
public class InitGenRSAKeysRunner {

    @PostConstruct
    public void generateKeyPair() throws Exception {
        RSAUtils.generateKeyPair();
    }
}
